<?
include_once "gblinclude.lib";
include_once "delcheck.lib";

$objName = $_GET["obj_name"];
$objId = UnRegisterID($_GET["obj_id"]);

$delCheck = CDelCheck::GetInstance();
$res = $delCheck->hasRelObjs($objName, $objId);

if ($res)
	echo json_encode(1);
else
	echo json_encode(0);
?>

